<?php
/*
 * Created on Jan 3, 2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
function Query($query)
{
	$res = @mysql_query($query) or die(mysql_query());
	return $res;	
}	
 
function Assoc($res)
	{
		$tmpArr =array();
        while ( $data = mysql_fetch_assoc($res) )
		  {	   
			array_push($tmpArr , $data);
   		  }	
 	 	return $tmpArr;
	} 
 
?>
